package com.chen.blue.domain.dto.system;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created By CLT On 2024/4/28.
 */
@SuppressWarnings("all")
@Getter
@Setter
@ApiModel("用户角色添加参数")
public class UserRoleDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID", required = true)
    private Long userId;

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID", required = true)
    private Long roleId;

    /**
     * 创建者
     */
    @JsonIgnore
    @ApiModelProperty(value = "创建者", required = true)
    private String creator;

    /**
     * 更新者
     */
    @JsonIgnore
    @ApiModelProperty(value = "更新者", required = true)
    private String updater;


}
